package top.ajun.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.ajun.common.utils.PageUtils;
import top.ajun.mall.product.entity.AttrGroupEntity;
import top.ajun.mall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author AJun
 * @email 1241088536@qq.com
 * @date 2020-11-24 21:32:20
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 根据分类 id 查询所有的分组及其里面的所有属性
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

}

